COM AT^SPBG test - Read entry from the sorted telephone book via sorted index
COM V1.0	30.11.04	T. Kleinmann

from attglobals import *

#Enable extended error messages with text
AT+CMEE=2
WAIT FOR OK

AT^SPBG=?
strResp=WAITFOR(1,'^SPBG:')

strStart = ExtractParameter(strResp,1,'^SPBG:')
strStopp = ExtractParameter(strResp,1,'-',')')

AT^SPBG=strStart[1],strStopp
WAIT FOR OK

AT^SPBG=5000,5000
WAIT FOR ERROR

AT
WAIT FOR OK

